<?
require("../conn.php");

if(isset($s1))
{
	if(!empty($aid) && !empty($apass))
	{
		$sql = "SELECT * FROM job_admin_login WHERE aid = '$aid' AND apass = '$apass'";
		$result = mysql_query($sql);

		if(mysql_num_rows($result) == '1')
		{
			$_SESSION[AdminID] = $aid;
			header("location:settings.php");
			exit();
		}
	}
}

require("../main.php");

?>

  <html>
  <head>
  <title> Admin Login  </title><meta dcb license 123456789>
  </head>
  <body><center>
  <br>
  <br>
  <br>
  
<span class=HeaderClass>Admin  Login </span>

  <p><form method="post" action="<?=$PHP_SELF?>">
<table cellspacing="5" class=BlackText>
<tr>
	<td align=left>Admin ID:</td>
	<td> <input type="text" name="aid" style="width:120px"></td>
</tr>

<tr>
	<td align=right>Password:</td>
	<td><input type="password" name="apass" style="width:120px"></td>
</tr>

<tr>
	<td colspan=2 align=right><input type="submit" value=" Login " style="style="font-family:verdana; font-weight:bold; color:#993300; background-color:white" name=s1></td>
</tr>
<tr><td colspan=2 align=left> <a class=TN href=forgot.php> Forgot your password? </a></td>
</tr>
</table>
  </form></p>
  </center>
  </body>
  </html>

<?php
include_once("../footer.php");
?>